<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

defined('BASE_PATH') or define('BASE_PATH',dirname(__DIR__).DIRECTORY_SEPARATOR);

require(BASE_PATH . 'vendor/autoload.php');
require(BASE_PATH . 'vendor/yiisoft/yii2/Yii.php');
require(BASE_PATH . 'config/bootstrap.php');
require(BASE_PATH . 'mz/tools/functions.php');

$config = yii\helpers\ArrayHelper::merge(
    require(BASE_PATH . 'config/main.php'),
    require(BASE_PATH . 'config/mz_main.php')
);

//var_dump($config);exit();

$application = new mz\yiiext\Application($config);
$application->run();
